package edu.ycxy.poetry.service.serviceImpl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import edu.ycxy.poetry.entity.FanYi;
import edu.ycxy.poetry.mapper.FanYiMapper;
import edu.ycxy.poetry.service.IFanYiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author @xin
 * @createDate 2022/3/8
 * @Description
 */
@Service
public class FanYiServiceImpl extends ServiceImpl<FanYiMapper, FanYi> implements IFanYiService {

    @Autowired
    private FanYiMapper fanYiMapper;

    //根据古诗的id,查询翻译的具体内容, 条件为 gid
    @Override
    public List<FanYi> selectList(Integer gid) {
        return fanYiMapper.selectListToFanYi(gid);
    }
}
